home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / bin / 4dview / 4dmap.h < prev    next >
C/C++ Source or Header  |  1993-11-17  |  1KB  |  56 lines

  1. extern "C" {
  2. #include <stdlib.h>
  3. #include <ctype.h>
  4. #include <string.h>
  5. }
  6. #include <math.h>
  7. #include "4dstuff.h"
  8.  
  9. // ===========================================================================
  10.  
  11. class object4d
  12. {
  13.  public:
  14.  object4d();
  15.  ~object4d();
  16.  int read4dfile(char *);
  17.  int clipobj(clip_plane *, int *);
  18.  char *return_name() {return (filename);}
  19.  poly_list polyhedron;
  20.  vertex_list polyvertex;
  21.  object4d *copyobj();
  22.  
  23.  private:
  24.  char *filename;
  25.  
  26. };
  27.  
  28. // ***************************************************************************
  29.  
  30. class object3d
  31. {
  32.  public:
  33.  object3d();
  34.  ~object3d();
  35.  char *return_name() {return objname;}
  36.  poly_list polyhedron;
  37.  vertex_list polyvertex;
  38.  
  39.  private:
  40.  char *objname;
  41. };
  42.  
  43. // ***************************************************************************
  44.  
  45. class transform
  46. {
  47.  public:
  48.   transform();
  49.   void pipe3dout(FILE *, object4d *, float [4][4], clip_plane *);
  50.   void fileout(char *, object4d *);
  51.   void copy(object4d *, object4d *);
  52.   void setproj(object4d *,int);
  53. };
  54.  
  55. // ===========================================================================
  56.